function buildUrlPreFix() {
    let path = {
        dev: {
            url: 'localhost',
            port: 8080,
        },
        pro: {
            url: 'www.xmstore.cn',
            port: 80,
        }
    };

    var url = null;
    var port = null;
    var isDev = true;
    if (isDev) {
        url = path.dev.url;
        port = path.dev.port;
    }
    return 'http://' + url + ':' + port;
}

const Config = {

    getUrlPreFix() {
        return buildUrlPreFix();
    }
}
